package com.func.domain.credit.repository;

import com.func.domain.credit.model.aggregate.TradeAggregate;
import com.func.domain.credit.model.entity.CreditAccountEntity;

/**
 * <p>
 * ICreditRepository
 * </p>
 *
 * @author Simon
 * @version 2025.03.23.1.0.0
 * @description
 * @since 2025-03-23
 */

public interface ICreditRepository {
    /**
     * 保存积分交易聚合对象
     * @param tradeAggregate 积分交易聚合对象
     */
    void saveUserCreditTradeOrder(TradeAggregate tradeAggregate);

    CreditAccountEntity queryUserCreditAccount(String userId);
}
